<?php

$conn = mysqli_connect($dbhost,$dbuser,$dbpass) or die("Connect failure to database") ;
mysql_select_db($dbname) or die("Unable to select database");